package com.frame.demo.util;

import android.text.TextUtils;

import org.apache.shiro.crypto.hash.Sha256Hash;

/**
 * Created by lei on 2017/8/28.
 */

public class EncryptionUtil {
    public static String encryptPassword(String password) {
        if (TextUtils.isEmpty(password)) {
            return "";
        }
        return new Sha256Hash(password).toHex();
    }

}
